﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace RBAC_Uthorization.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
       private readonly IConfiguration configuration1;
        public ValuesController(IConfiguration configuration)
        {
            configuration1 = configuration;
        }
        [HttpGet]
        public string Get(string key)
        {
            return configuration1[key];
        }
    }
}
